/*
 * @Author       : 许警
 * @Date         : 2024-04-24 11:32:20
 * @LastEditors: 许警 11378748333@
 * @LastEditTime: 2024-07-10 11:48:24
 * @FilePath     : /src/views/content/translate/list/data.js
 * @Description  :
 */
import moment from 'moment'

export const columnsArr = [
  {
    title: '订单号',
    dataIndex: 'number',
    className: 'table',
    align: 'center'
  },
  {
    title: '用户姓名',
    dataIndex: 'userName',
    className: 'table',
    align: 'center'
  },
  {
    title: '用户手机号',
    dataIndex: 'userMobile',
    className: 'table',
    align: 'center'
  },
  {
    title: '订单金额',
    dataIndex: 'orderPrice',
    className: 'table',
    align: 'center',
    slots: {
      customRender: 'jobName'
    }
  },
  {
    title: '护士佣金',
    dataIndex: 'nursePrice',
    className: 'table',
    align: 'center'
  },
  {
    title: '服务地址',
    dataIndex: 'address',
    className: 'table',
    align: 'center',
    width: '200px'
  },
  {
    title: '服务名称',
    dataIndex: 'serviceName',
    className: 'table',
    align: 'center'
  },
  {
    title: '渠道名称',
    dataIndex: 'institution',
    className: 'table',
    align: 'center'
  },
  {
    title: '下单时间',
    dataIndex: 'createdAt',
    className: 'table',
    align: 'center'
  },
  {
    title: '服务时间',
    dataIndex: 'scheduleTime',
    className: 'table',
    align: 'center'
  },
  {
    title: '护士姓名',
    dataIndex: 'nurseName',
    className: 'table',
    align: 'center'
  },
  {
    title: '护士ID',
    dataIndex: 'nurseId',
    className: 'table',
    align: 'center'
  },

  {
    title: '提现状态',
    dataIndex: 'withdrawalsStatus',
    className: 'table',
    align: 'center',
    slots: {
      customRender: 'withdrawalsStatus'
    }
  },
  {
    title: '到账时间',
    dataIndex: 'estimatedArrivalTime',
    className: 'table',
    align: 'center'
  },
  {
    title: '订单状态',
    dataIndex: 'status',
    className: 'table',
    align: 'center',
    slots: {
      customRender: 'status'
    }
  }
  // {
  //   title: '操作',
  //   dataIndex: 'operation',
  //   className: 'table',
  //   align: 'center',
  //   fixed: 'right',
  //   width
  //   slots: {
  //     customRender: 'operation'
  //   }
  // }
]
export const statusColorObj = {
  0: {
    text: '未到账',
    color: 'blue'
  },
  1: {
    text: '审核中',
    color: 'warning'
  },
  2: {
    text: '已到账',
    color: 'success'
  },
  3: {
    text: '已拒绝',
    color: 'error'
  }
}
export const orderStatus = {
  1: '待付款',
  2: '待接单',
  3: '待服务',
  4: '服务中',
  5: '已完成',
  6: '已取消',
  7: '已退款',
  8: '异常',
  9: '申请退款中',
  10: '已拒绝'
}
export const dataObj = {
  loading: true,
  list: [],
  time: [],
  id: '',
  visible: false,
  selectData: {},
  organList: [],
  chartTabs: [
    { name: '订单数量', value: 'orderNum', isMoney: false },
    { name: '订单总金额', value: 'orderPriceSum', isMoney: true },
    { name: '护士佣金总金额', value: 'nursePriceSum', isMoney: true }
  ],
  ranges: {
    //时间选择器
    Today: [moment(), moment()],
    'This Month': [moment(), moment().endOf('month')]
  }
}

export const rulesObj = {
  source: [
    {
      required: true,
      message: '请输入',
      trigger: 'blur'
    }
  ],
  organName: [
    {
      required: true,
      message: '请输入',
      trigger: 'blur'
    }
  ],
  serviceId: [
    {
      required: true,
      message: '请选择'
    }
  ]
}
